<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>所有住客信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body >
<div class="row">
    <div class="col-md-4 column">
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/main">返回主界面</a>
    </div>
</div>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>所有的住客信息为</small>
                </h1>
            </div>
        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>房间号</th>
                    <th>身份证号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>年龄</th>
                    <th>电话号码</th>
                    <th>预付定金</th>
                    <th>入住时间</th>
                    <th>退房时间</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="resident" items="${requestScope.get('list')}">
                    <tr>
                        <td>${resident.getRoom_id()}</td>
                        <td>${resident.getCard_id()}</td>
                        <td>${resident.getName()}</td>
                        <td>${resident.getSex()}</td>
                        <td>${resident.getAge()}</td>
                        <td>${resident.getTelephone()}</td>
                        <td>${resident.getSubscription()}</td>
                        <td>${resident.getIntime()}</td>
                        <td>${resident.getOuttime()}</td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>

</div>